package org.csu.mall.service;

import org.csu.mall.common.UniformResponse;
import org.csu.mall.entity.Account;
import org.csu.mall.entity.Commodity;
import org.csu.mall.vo.CartCommodityVO;
import org.csu.mall.vo.CommodityListVO;
import org.csu.mall.vo.CommodityVO;

import java.util.List;

public interface ICommodityService {

    UniformResponse<CommodityVO> getCommodityDetail(String itemId);

    UniformResponse<CommodityListVO> getCommodityList(String categoryId, String keyword, int pageNum, int pageSize, String orderBy, int source, int status);

    UniformResponse<String> releaseCommodity(Account account, String address, Commodity commodity);

    UniformResponse<String> updateCommodity(Account account, Commodity commodity);

    UniformResponse<String> cancelCommodity(Account account, String itemId);

    UniformResponse<CartCommodityVO> purchaseCommodity(String itemId, Account account);

    UniformResponse<String> addCommodityImage(String itemId, String imgAddress, Account account);
}
